#!/bin/sh

#in ubuntu ldconfig is a script and ldconfig.real is the real binary
[ -f sbin/ldconfig.real ] && mv -f sbin/ldconfig.real sbin/ldconfig

#slackware 13.1...
rm -f ./etc/profile.d/*.csh* 2>/dev/null

# remove 'incoming'
[ -d ${PLIB}/incoming ] && rm -r ${PLIB}/incoming

#slacko
if [ -L /${PLIB}/ld-linux.so.2 -a ! -e /${PLIB}/ld-linux.so.2 ] ; then
	dest=`readlink /${PLIB}/ld-linux.so.2`
	case $dest in *.incoming)
		dest=${dest%.incoming}
		[ -f $dest ] && ln -sfv $dest /${PLIB}/ld-linux.so.2
	esac
fi
